<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets">
	<head>
		<!-- META tags -->
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="Default-Style" content="Serie402 CSS" />
		<ui:insert name="pageMetaTags" />
		
		<!-- Window title -->
		<title>Serie402.COM - <ui:insert name="windowTitle" /></title>
		
		<!-- Stylesheets -->
		<link href="#{request.contextPath}/resources/css/serie402.css" rel="stylesheet" type="text/css" title="Serie402 CSS" />
		<link href="#{request.contextPath}/resources/css/admin.css" rel="stylesheet" type="text/css" />
		<ui:insert name="pageHeadStylesheet" />
		
		<!-- Scripts -->
		<script type="text/javascript" src="#{request.contextPath}/resources/javascript/serie402.js"></script>
		<script type="text/javascript" src="#{request.contextPath}/resources/javascript/admin.js"></script>
		<ui:insert name="pageHeadScript" />
	</head>
	
	<body>
		<!-- for some odd reason we need to enter an extra script in order for page to render on IE -->
		<script type="text/javascript">var test="";</script>
		
		<!-- script that's supposed to be at the start of the page -->
		<ui:insert name="bodyStartScript" />
		
		<!-- main table -->
		<table class="MainTable">
			<!-- logo -->
			<tr>
				<td class="TopLogo" colspan="2"></td>
			</tr>
			
			<!-- main menu -->
			<ui:include src="/_includes/menu/adminMenu.jsp" />
			
			<!-- main content row -->
			<tr>
				<!-- main content -->
				<td class="MainContent">
					<table class="ContentSectionsTable">
						<tr>
							<td class="PageTitle"><ui:insert name="pageTitle" /></td>
						</tr>
						
						<tr>
							<td class="PageMessages"><h:outputText value="#{genericManagedBean.pageMessages}" escape="false" /></td>
						</tr>
						
						<ui:insert name="mainContent" />
					</table>
				</td>
			</tr>
			
			<!-- footer -->
			<tr>
				<td class="Footer" colspan="2">
					<a href="#{request.contextPath}/_pages/public/home.jsf">Home</a> :
					<span style="color: gray;">&#169; 2011 Serie402.com</span>
				</td>
			</tr>
		</table>
		
		<!-- ajax container -->
		<div id="ajaxContainerDIV" style="visibility:hidden;"></div>
		
		<!-- script that's supposed to be at the end of the page -->
		<ui:insert name="bodyEndScript" />
	</body>
</html>